package com.hesicare.health.service.impl;

import com.hesicare.health.entity.SysPatientRecord;
import com.hesicare.health.mapper.SysPatientRecordMapper;
import com.hesicare.health.service.ISysPatientRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 55097
 */
@Service
public class SysPatientRecordServiceImpl implements ISysPatientRecordService {

    @Autowired
    private SysPatientRecordMapper sysPatientRecordMapper;


    @Override
    public void insertPatientRecord(SysPatientRecord sysPatientRecord) {
        sysPatientRecordMapper.insertSysPatientRecord(sysPatientRecord);
    }

    @Override
    public void insertPtientRecordByPatientList(List<String> patientList) {
        sysPatientRecordMapper.insertPtientRecordByPatientList(patientList);
    }

    @Override
    public void updateHisPatientByhospitalizedType(List<String> patientIds) {
        sysPatientRecordMapper.updateHisPatientByhospitalizedType(patientIds);
    }
}
